home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / utility / wzun11sr.zip / ABOUT.C next >
C/C++ Source or Header  |  1991-09-23  |  759b  |  37 lines

  1. #include <windows.h>    /* required for all Windows applications */
  2.  
  3.  
  4. /****************************************************************************
  5.  
  6.     FUNCTION: About(HWND, unsigned, WORD, LONG)
  7.  
  8.     PURPOSE:  Processes messages for "About" dialog box
  9.  
  10.     MESSAGES:
  11.  
  12.     WM_INITDIALOG - initialize dialog box
  13.     WM_COMMAND    - Input received
  14.  
  15. ****************************************************************************/
  16.  
  17. BOOL FAR PASCAL About(hDlg, message, wParam, lParam)
  18. HWND hDlg;
  19. unsigned message;
  20. WORD wParam;
  21. LONG lParam;
  22. {
  23.     switch (message) {
  24.     case WM_INITDIALOG:
  25.         return (TRUE);
  26.  
  27.     case WM_COMMAND:
  28.         if (wParam == IDOK) {
  29.         EndDialog(hDlg, TRUE);
  30.         return TRUE;
  31.         }
  32.     return TRUE;
  33.     }
  34.     return FALSE;
  35. }
  36.  
  37.